package com.xing.lei.happy.thrid.flh;


import java.util.Scanner;
import java.util.UUID;

/**
 * Description:生成的是32位的大写字母的字符串和32位的小写字母带-
 *
 * @author flh
 * @version 1.00
 * @Date 2023/2/24
 */
public class GetUUID {
    public static void main(String[] args) {
        while(true){
            System.out.print("请输入生成的UUID数量:");
            Scanner scanner = new Scanner(System.in);
            int num = scanner.nextInt();
            for (int i = 0; i < num; i++) {
                getUUID();
            }
        }

    }

    public static void getUUID(){
        String str = UUID.randomUUID().toString();
        System.out.print(str);

        String appsecret = str.trim().replaceAll("-","").toUpperCase();
        System.out.println("\t" + appsecret);
    }
}
